<!DOCTYPE HTML>
<html>

	<head>
		<script id="allmobilize" charset="utf-8" src="${rc.contextPath}/js/allmobilize.min.js"></script>
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="alternate" media="handheld" />
		<!-- end 云适配 -->
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>登录-城建就业指导网-专为城建学子提供就业帮助</title>


		<!-- <div class="web_root"  style="display:none">h</div> -->
		<script type="text/javascript">
			console.log(1);
		</script>
		<link rel="stylesheet" type="text/css" href="${rc.contextPath}/css/style.css" />

		<script src="${rc.contextPath}/js/jquery.1.10.1.min.js" type="text/javascript"></script>

		<script type="text/javascript" src="${rc.contextPath}/js/jquery.lib.min.js"></script>
		<script type="text/javascript" src="${rc.contextPath}/js/core.min.js"></script>

		<script type="text/javascript">
			var youdao_conv_id = 271546;
		</script>
		<script type="text/javascript" src="${rc.contextPath}/js/conv.js"></script>
	</head>

	<body id="login_bg">
		<div class="login_wrapper">
			<div class="login_header">
				<a href="${rc.contextPath}/index"><img src="${rc.contextPath}/img/login_white2.png" width="285" height="62" alt="拉勾招聘" /></a>
				<div id="cloud_s"><img src="${rc.contextPath}/img/cloud_s.png" width="81" height="52" alt="cloud" /></div>
				<div id="cloud_m"><img src="${rc.contextPath}/img/cloud_m.png" width="136" height="95" alt="cloud" /></div>
			</div>

			<input type="hidden" id="resubmitToken" value="" />
			<div class="login_box">
				<form id="loginForm">
					<input type="text" id="email" name="email" value="" tabindex="1" placeholder="请输入登录邮箱地址" />
					<input type="password" id="password" name="password" tabindex="2" placeholder="请输入密码" />
					<span class="error" style="display:none;" id="beError"></span>
					<label class="fl" for="remember"><input type="checkbox" id="remember" value="" checked="checked" name="autoLogin" /> 记住我</label>
					<a href="reset.html" class="fr" target="_blank">忘记密码？</a>

					<input type="submit" id="submitLogin" value="登 &nbsp; &nbsp; 录" />
					<!-- <a style="color:#fff;" href="index.html" class="submitLogin" title="登 &nbsp; &nbsp; 录" />登 &nbsp; &nbsp; 录</a> -->

				</form>
				<div class="login-right">
					<div>还没有城建就业指导网帐号？</div>
					<a href="${rc.contextPath}/register" class="registor_now">立即注册</a>
					<!--<div class="login_others">使用以下帐号直接登录:</div>
					<a href="h/ologin/auth/sina.html" target="_blank" class="icon_wb" title="使用新浪微博帐号登录"></a>
					<a href="h/ologin/auth/qq.html" class="icon_qq" target="_blank" title="使用腾讯QQ帐号登录"></a>-->
				</div>
			</div>
			<div class="login_box_btm"></div>
		</div>

		
	</body>
	
	<script type="text/javascript">
			$(function() {
				//验证表单
				$("#loginForm").validate({
					rules: {
						email: {
							required: true,
							email: true
						},
						password: {
							required: true
						}
					},
					messages: {
						email: {
							required: "请输入登录邮箱地址",
							email: "请输入有效的邮箱地址，如：vivi@lagou.com"
						},
						password: {
							required: "请输入密码"
						}
					},
					submitHandler: function(form) {
						if($('#remember').prop("checked")) {
							$('#remember').val(1);
						} else {
							$('#remember').val(null);
						}
						var email = $('#email').val();
						var password = $('#password').val();
						var remember = $('#remember').val();


						$(form).find(":submit").attr("disabled", true);
						
						jQuery.post("${rc.contextPath}/login", $("#loginForm").serialize(), function(data) {
							if(data.code == 200){
								window.location.href = "${rc.contextPath}/";
							}
							$("#beError").css("display","block");
							$("#beError").text(data.info);
							
						}, 'json');
						
					}
				});
			});
		</script>

</html>